import EncryptUtil from './EncryptUtil'
import router from '@/router/router'
// import axios from '@/router/axios'
import { RSAPublicKeyConfig, AESConfig, reqestConfig, responseConfig } from './encryptConfig'
import { replaceKeys } from './replaceKeysConfig'
import website from '@/config/website'

const isTest = process.env.VUE_APP_ENV === 'dev' || process.env.VUE_APP_ENV === 'test'

var encryptUtil = new EncryptUtil()
// eslint-disable-line
const axios = window.axios
encryptUtil.init({ router, axios, RSAPublicKeyConfig, AESConfig, reqestConfig, responseConfig, replaceKeys, websiteKey: website.key, isTest })
